-- GENERATED SPELL FOR [Anchorite Elbadon] --


function spell0_25639(pUnit, Event) --@Renew,Self--
pUnit:FullCastSpellOnTarget(45859,pUnit)
pUnit:RegisterEvent('Sorts_25639', 596, 1)
end

function Sorts_25639(pUnit, Event)
local choix_sorts_25639 = math.random(0, 0)
if choix_sorts_25639 == 0 then
pUnit:RegisterEvent('spell0_25639', 1, 1)
end
end

function mob25639_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25639', math.random(1500, 3000), 1)
end

function mob25639_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25639_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25639_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25639, 1, 'mob25639_Action')
RegisterUnitEvent(25639, 2, 'mob25639_Leave')
RegisterUnitEvent(25639, 3, 'mob25639_Kill')
RegisterUnitEvent(25639, 4, 'mob25639_Die')
